package com.xiaowan.model.credit;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 实现功能：紧急联系人
 *
 * @author 作者[admin]
 * @version 1.0.00 2023-04-07 10:41
 */
@Data
@TableName("ce_emergency_contact_info")
public class CreditEmergencyContactInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 标识
     */
    @TableField("code")
    private String code;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private Date updateTime;

    /**
     * 紧急联系人姓名
     */
    @TableField("name")
    private String name;

    /**
     * 紧急联系人电话
     */
    @TableField("mphone")
    private String mphone;

    /**
     * 关系 1:父母 2:子女 3:亲戚 4:朋友
     */
    @TableField("relation")
    private Integer relation;

    /**
     * 紧急联系人住址
     */
    @TableField("address")
    private String address;

    /**
     * address 省id
     */
    @TableField("provinceId")
    private Integer provinceId;

    /**
     * address 市id
     */
    @TableField("townId")
    private Integer townId;

    /**
     * address 县id
     */
    @TableField("countyId")
    private Integer countyId;

    /**
     * address 省地址
     */
    @TableField("provinceAddress")
    private String provinceAddress;

    /**
     * address 市地址
     */
    @TableField("townAddress")
    private String townAddress;

    /**
     * address 县地址
     */
    @TableField("countyAddress")
    private String countyAddress;


}
